package com.wzdigit.wms.basic.client.request.transfer;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 确认分配库存输入
 * @author yangdongjie
 * @param <T>
 * @param <T>
 * @GetWarehouseListRequest.java
 * @2020年12月31日下午3:40:49
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class ConfirmInvZoneRequest implements Serializable {

	private static final long serialVersionUID = -5812482285373909439L;
	
    /**
	 * 发货单明细ID、调拨中间表明细ID
	 */
    @ApiModelProperty(value = "发货单明细ID、调拨中间表明细ID", required = true)
    @NotNull(message = "明细ID不能为空")
    private Integer dtlId;
    
    /**
	 * 分配库存集合
	 */
    @ApiModelProperty(value = "分配库存集合", required = true)
    @NotNull(message = "分配库存集合不能为空")
    @NotEmpty(message = "分配库存集合不能为空")
    @Valid
    private List<ConfirmInvZoneItemRequest> items;
}
